<template>
  <div class="warpc">
    <div class="content" v-for="(v, i) in arrt" :key="i">
      <img :src="v.img2" alt="" />

      <p>{{ v.titel }}</p>
    </div>
  </div>
</template>
<script>
import axios from "axios";

// import { gettitleCK } from "../../../api/chenkong.js";
export default {
  data() {
    return {
      arrt: [],
    };
  },
  created() {
    axios.request("http://localhost:8889/titleCK").then(({ data }) => {
      this.arrt = data;
    });
    // gettitleCK().then(({ data }) => {
    //   this.arrt = data;
    // });
  },
};
</script>

<style lang="scss" scoped>
.warpc {
  width: 100%;
  margin-top: 2.667vw;

  display: flex;
  flex-wrap: wrap;
  .content {
    width: 20%;
    margin: auto;
    text-align: center;

    img {
      width: 9.6vw;
    }
    p {
      font-size: 3.2vw;
      padding: 2.667vw 0;
    }
  }
}
</style>>
